using System; 
using System.Collections.Generic; 
using System.Text; 
using FluentNHibernate.Mapping;

namespace Zeus.Biz.DomainModel.NHib.Northwind {
    
    
    public class AlphabeticalListOfProductMap : ClassMap<AlphabeticalListOfProduct> {
        
        public AlphabeticalListOfProductMap() {
			Table("Alphabetical list of products");
			LazyLoad();
			CompositeId();
			Map(x => x.ProductID).Column("ProductID").Not.Nullable();
			Map(x => x.ProductName).Column("ProductName").Not.Nullable().Length(40);
			Map(x => x.SupplierID).Column("SupplierID");
			Map(x => x.CategoryID).Column("CategoryID");
			Map(x => x.QuantityPerUnit).Column("QuantityPerUnit").Length(20);
			Map(x => x.UnitPrice).Column("UnitPrice");
			Map(x => x.UnitsInStock).Column("UnitsInStock");
			Map(x => x.UnitsOnOrder).Column("UnitsOnOrder");
			Map(x => x.ReorderLevel).Column("ReorderLevel");
			Map(x => x.Discontinued).Column("Discontinued").Not.Nullable();
			Map(x => x.CategoryName).Column("CategoryName").Not.Nullable().Length(15);
        }
    }
}
